<?php
header('Content-Type: text/html;Charset=UTF-8');

@$name = $_REQUEST['name'];

@$value =  $_REQUEST['value'];

@$pk = $_REQUEST['pk'];

require 'lib/db.php';

dbUpdate("update contact set $name=:value where id=:id",array('value'=>$value,'id'=>$pk));

echo json_encode(array('status'=>true));
